package cn.microservices.cloud.common.core.utils;

import java.util.HashMap;
import java.util.Map;

public class WXConstant {

	// --
	// 得体APP、得体公众号、极简主义公众号对应的名字，用于作为下面几个MAP的key，以及微信支付JS接口中的参数
	// --
	public static final String microservices_APP_KEY = "microservices_app";

	public static final String microservices_MP_KEY = "microservices_mp";

	public static final String JJZY_MP_KEY = "jjzy_mp";

	public static final String microservices_XCX_KEY = "microservices_xcx";

	public static final String microservices_GYL_APP_KEY = "microservices_gyl_app";

	// --
	// 得体APP相关常量
	// --

	/**
	 * 得体应用（得体APP）对应的APP_ID
	 */
	public static final String microservices_APP_APP_ID = "wxf481b06ba8878806";

	/**
	 * 得体应用（得体APP）对应的APP_SECRET
	 */
	public static final String microservices_APP_APP_SECRET = "3e2b9f77bd966c45ee2663863cc71df9";

	/**
	 * 得体应用（得体APP）对应的商户的商户号（商户ID）
	 */
	public static final String microservices_APP_MCH_ID = "1253103801";

	/**
	 * 得体应用（得体APP）对应的商户的商户密钥（商户KEY）
	 */
	public static final String microservices_APP_MCH_KEY = "LKJdfi4o9ODsdfvxmvxn04DKDJLDSFRL";

	// --
	// 得体定制公众号相关常量
	// --

	/**
	 * 得体定制公众号对应的APP_ID
	 */
	private static final String microservices_MP_APP_ID = "wx7fdcc6b95fa85eb1";

	/**
	 * 得体定制公众号对应的APP_SECRET
	 */
	private static final String microservices_MP_APP_SECRET = "eb9f99207ee25744ab62d31939ab8e8f";

	/**
	 * 得体定制公众号对应的商户的商户号（商户ID）
	 */
	private static final String microservices_MP_MCH_ID = "1314084701";

	/**
	 * 得体定制公众号对应的商户的商户密钥（商户KEY）
	 */
	private static final String microservices_MP_MCH_KEY = "9df8470588e248cea5aef7a5d17207fb";

	// --
	// 极简主义公众号相关常量
	// --

	/**
	 * 极简主义公众号对应的APP_ID
	 */
	private static final String JJZY_MP_APP_ID = "wx3874fbf26aee25da";

	/**
	 * 极简主义公众号对应的APP_SECRET
	 */
	private static final String JJZY_MP_APP_SECRET = "ce4f14a8746fa0741bd770070596dc40";

	/**
	 * 极简主义公众号对应的商户的商户号（商户ID）
	 */
	private static final String JJZY_MP_MCH_ID = "1319829601";

	/**
	 * 极简主义公众号对应的商户的商户密钥（商户KEY）
	 */
	private static final String JJZY_MP_MCH_KEY = "896993a8ebbd47e3a8f721326140bdf7";

	// --
	// 得体小程序相关常量
	// --

	/**
	 * 得体小程序对应的APP_ID
	 */
	public static final String microservices_XCX_APP_ID = "wx1f5555bdb8b4fd5b";

	/**
	 * 得体小程序对应的APP_SECRET
	 */
	public static final String microservices_XCX_APP_SECRET = "03db4c4363291535233855c338192c41";

	/**
	 * 得体小程序对应的商户的商户号（商户ID）
	 */
	public static final String microservices_XCX_MCH_ID = "1412802702";

	/**
	 * 得体小程序对应的商户的商户密钥（商户KEY）
	 */
	public static final String microservices_XCX_MCH_KEY = "0992ec0a3bfa41a78cb3de6b0fa8e003";


	/**
	 * 得体供应链应用（得体供应链批发商APP）对应的APP_ID
	 */
	public static final String microservices_GYL_APP_APP_ID = "wxa2e2140f9ba473bb";

	/**
	 * 得体应用（得体APP）对应的APP_SECRET
	 */
	public static final String microservices_GYL_APP_APP_SECRET = "7723a3ac16e30390b63917855e92c659";

	/**
	 * 得体应用（得体APP）对应的商户的商户号（商户ID）
	 */
	public static final String microservices_GYL_APP_MCH_ID = "1465558302";

	/**
	 * 得体应用（得体APP）对应的商户的商户密钥（商户KEY）
	 */
	public static final String microservices_GYL_APP_MCH_KEY = "2f1304d347b4498c9b0520f18ee5677d";

	// --
	// 将每组四个常量放在MAP中，方便有些地方获取
	// --
	public static Map<String, String> APP_ID_MAP = new HashMap<>();

	public static Map<String, String> APP_SECRET_MAP = new HashMap<>();

	public static Map<String, String> MCH_ID_MAP = new HashMap<>();

	public static Map<String, String> MCH_KEY_MAP = new HashMap<>();

	static {
		APP_ID_MAP.put(microservices_APP_KEY, microservices_APP_APP_ID);
		APP_ID_MAP.put(microservices_MP_KEY, microservices_MP_APP_ID);
		APP_ID_MAP.put(JJZY_MP_KEY, JJZY_MP_APP_ID);
		APP_ID_MAP.put(microservices_XCX_KEY, microservices_XCX_APP_ID);
		APP_ID_MAP.put(microservices_GYL_APP_KEY, microservices_GYL_APP_APP_ID);

		APP_SECRET_MAP.put(microservices_APP_KEY, microservices_APP_APP_SECRET);
		APP_SECRET_MAP.put(microservices_MP_KEY, microservices_MP_APP_SECRET);
		APP_SECRET_MAP.put(JJZY_MP_KEY, JJZY_MP_APP_SECRET);
		APP_SECRET_MAP.put(microservices_XCX_KEY, microservices_XCX_APP_SECRET);
		APP_SECRET_MAP.put(microservices_GYL_APP_KEY, microservices_GYL_APP_APP_SECRET);

		MCH_ID_MAP.put(microservices_APP_KEY, microservices_APP_MCH_ID);
		MCH_ID_MAP.put(microservices_MP_KEY, microservices_MP_MCH_ID);
		MCH_ID_MAP.put(JJZY_MP_KEY, JJZY_MP_MCH_ID);
		MCH_ID_MAP.put(microservices_XCX_KEY, microservices_XCX_MCH_ID);
		MCH_ID_MAP.put(microservices_GYL_APP_KEY, microservices_GYL_APP_MCH_ID);

		MCH_KEY_MAP.put(microservices_APP_KEY, microservices_APP_MCH_KEY);
		MCH_KEY_MAP.put(microservices_MP_KEY, microservices_MP_MCH_KEY);
		MCH_KEY_MAP.put(JJZY_MP_KEY, JJZY_MP_MCH_KEY);
		MCH_KEY_MAP.put(microservices_XCX_KEY, microservices_XCX_MCH_KEY);
		MCH_KEY_MAP.put(microservices_GYL_APP_KEY, microservices_GYL_APP_MCH_KEY);
	}

}
